<?php

/**
 * class Standart_Helper_Block
 *
 * This class is view helper which allows to insert content blocks into view.
 */
class Standart_Helper_Block extends Zend_View_Helper_Abstract
{
    public function block($key)
    {
        $mapper = new Application_Model_BlockMapper();
        $block  = $mapper->findByKey($key);
        if ($block)
        {
            return $block->getContent();
        }
        return false;
    }
}